home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TP_TOOLS / VIDEO.DOC < prev    next >
Text File  |  1992-12-23  |  2KB  |  90 lines

  1. PROGRAMMING MANUAL
  2. ------------------
  3.   The following list of routines were written to provide graphics support 
  4. for programs written in Turbo Pascal (version 5.0).  The routines include:
  5.  
  6. GRAPHICS_CLOSE
  7. GRAPHICS_TEST
  8. GRAPHICS_OPEN_EGA
  9. GRAPHICS_OPEN_VGA
  10.  
  11. The following is a programming example for proper use of the video routines:
  12.  
  13. PROGRAM VIDEO_EXAMPLE
  14. USES DOS, CRT, GRAPH, VIDEO
  15. BEGIN
  16.     GRAPHICS_TEST;
  17.     GRAPHICS_OPEN_VGA;
  18.     GRAPHICS_CLOSE;
  19.     HALT;
  20. END;
  21.  
  22. NOTES: 1) The video unit must be included in the USES line (along with any 
  23. other required units).
  24.  
  25.  
  26. PROGRAMMING MANUAL
  27. ------------------
  28. GRAPHICS_CLOSE
  29.  
  30. USE         GRAPHICS_CLOSE;
  31.  
  32. FUNCTION   Shuts down the graphics drivers.
  33.  
  34. ARGUMENTS  None.
  35.  
  36. COMMENTS   None. 
  37.  
  38.  
  39. PROGRAMMING MANUAL
  40. -----------------
  41. GRAPHICS_TEST
  42.  
  43. USE        GRAPHICS_TEST;
  44.  
  45. FUNCTION   Tests the system for the proper loading of the EGA/VGA driver.
  46.  
  47. ARGUMENTS  None.
  48.  
  49. COMMENTS   The EGA/VGA driver will not load properly on a computer that 
  50.            does not support EGA or VGA graphics.  If this happens this 
  51.            routine will detect the error and will display an error message 
  52.            on the computer screen and will terminate the program.
  53.  
  54.  
  55. PROGRAMMING MANUAL
  56. -----------------
  57. GRAPHICS_OPEN_EGA
  58.  
  59. USE        GRAPHICS_OPEN_EGA;
  60.  
  61. FUNCTION   Sets the video mode to EGA graphics.
  62.  
  63. ARGUMENTS  None.
  64.  
  65. COMMENTS   None.
  66.  
  67.  
  68. PROGRAMMING MANUAL
  69. ------------------
  70. GRAPHICS_OPEN_VGA
  71.  
  72. USE        GRAPHICS_OPEN_VGA;
  73.  
  74. FUNCTION   Sets the video mode to VGA graphics.
  75.  
  76. ARGUMENTS  None.
  77.  
  78. COMMENTS   None.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.